/**
 * {{ label }}组件
 */
import { inherit, createComponent } from '../../utils'
import { BasicComponent } from '../component'
import {{ properCase name }}Render from './{{ name }}-render'
import {{ properCase name }}RenderConfig from './{{ name }}-render-config'

function {{ properCase name }}() {}
inherit({{ properCase name }}, BasicComponent)
{{ properCase name }}.prototype.__render = function(h, data) {
  return h({{ properCase name }}Render, { props: { data }})
}
{{ properCase name }}.prototype.__renderConfig = function(h, data) {
  return h({{ properCase name }}RenderConfig, { props: { data }})
}
export const {{ camelCase name }} = createComponent({{ properCase name }}, '{{ label }}', '{{ index }}', '{{ category }}', {{ isContainer }}, {
  model: '',
  defaultValue: '', // 默认值
  requiredRule: {
    required: false, // 必须填写
    message: '必填项',
    trigger: ['change', 'blur']
  },
  rules: []
})
